package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.CashRedMallMapper;
import com.hcb.micro.dto.CashRedMall;
import com.hcb.micro.service.ICashRedMallService;

@Service("CashRedMallService")
public class CashRedMallServiceImpl implements ICashRedMallService {

	@Autowired
	CashRedMallMapper crmm;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return crmm.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(CashRedMall record) {
		return crmm.insert(record);
	}

	@Override
	public int insertSelective(CashRedMall record) {
		return crmm.insertSelective(record);
	}

	@Override
	public CashRedMall selectByPrimaryKey(Integer id) {
		return crmm.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(CashRedMall record) {
		return crmm.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(CashRedMall record) {
		return crmm.updateByPrimaryKey(record);
	}

	@Override
	public List<CashRedMall> selectByCashRedId(Integer cashRedId) {
		return crmm.selectByCashRedId(cashRedId);
	}

	@Override
	public CashRedMall selectByCashRedIdAndMallUuid(Map<String, Object> para) {
		return crmm.selectByCashRedIdAndMallUuid(para);
	}

}
